<html>
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />
        <g:javascript library="jquery" plugin="jquery"/>
    </head>
    <body>
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${resource(dir:'images',file:'spinner.gif')}" alt="Spinner" />
        </div>
        <h1 class="logo">Barato pra Dedeu</h1>

        <div class="user">
            <g:loginControl />

        </div>


        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link controller="categoriaOferta" action="create">Categoria da Oferta</g:link></span>
            <span class="menuButton"><g:link controller="oferta" action="create">Oferta</g:link></span>
			<span class="menuButton"><g:link controller="cupom" action="list">Cupom</g:link></span>
			<span class="menuButton"><g:link controller="parceiro" action="list">Parceiro</g:link></span>
			<span class="menuButton"><g:link controller="pedido" action="list">Pedido</g:link></span>
			<span class="menuButton"><g:link controller="cidade" action="list">Cidade</g:link></span>
			<span class="menuButton"><g:link controller="cliente" action="list">Cliente</g:link></span>
			<span class="menuButton"><g:link controller="enviarConvites" action="list">Enviar Convites</g:link></span>
        </div>
        <g:layoutBody />
        <div id="footer">
        	Barato<b>Dedeu</b> - Implementado em <a href="http://www.grails.org" target="_blank">Grails</a>.
        </div>
    </body>
</html>